import './App.css';
import {
  BrowserRouter as Router,
  Route,
  Switch,
  Redirect
} from 'react-router-dom'

import Home from './pages/Home';
import Login from '@/pages/Login'

function App() {
  return (
    <Router>
      <div className="App">
        <Switch>
          <Redirect exact from='/' to='/home'></Redirect>
          <Route path='/home' component={ Home }></Route>
          <Route path='/login' component={ Login }></Route>
        </Switch>
      </div>
    </Router>
  );
}

export default App;
